Carbon


CreateWindowFromResource

Header: MacWindows.h Carbon status: Supported

Creates a window from 'wind' resource data.

OSStatus CreateWindowFromResource (
    SInt16 resID, 
    WindowRef *outWindow
);
Parameter descriptions
resID

The resource ID of a resource of type ‘wind’. Pass in the ID of the 'wind' resource to be used to create the window.

outWindow

On input, a pointer to a value of type WindowPtr. On return, the window pointer points to the newly created window.

function result

A result code.

DISCUSSION

The CreateWindowFromResource function loads a window from a 'wind' resource. The Window Manager creates the window invisibly and places it at the front of the window list. After calling CreateWindowFromResource, you should set any desired associated data—using Window Manager or Control Manager accessor functions—then call the function TransitionWindow to display the window.

VERSION NOTES

This function is available with Mac OS 8.5 and later.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)